#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2024/7/29 14:59
# @Author  : 王凯
# @File    : main_run.py
# @Project : scrapy_spider
import sys
from pathlib import Path

from scrapy.crawler import CrawlerProcess
from scrapy.utils.project import get_project_settings

sys.path.append(Path(__file__).parent.parent.parent.parent.as_posix())

if __name__ == '__main__':
    process = CrawlerProcess(get_project_settings())
    spider_list = [
        'comapny_search_gsxt',
    ]
    for spider in spider_list:
        process.crawl(spider)
    process.start()
